var mongoose = require('mongoose');


exports.signinRequired = function(req, res, next) {
  var user = req.session.user

  if (!user) {
    return res.redirect('/')
  }

  next()
}

